import { Tools } from 'weaver-mobile';

export const goalListComment = params => {   //目标评论信息
    let options = {
		method: 'POST',
		url: '/api/workrelate/goal/goalListComment',
		params
	};
    return Tools.callApi(options);
}

export const addGoalFeedBack = params => {   //添加新的反馈
    let options = {
		method: 'POST',
		url: '/api/workrelate/goal/addGoalFeedBack',
		params
	};
    return Tools.callApi(options);
}

export const delGoalFbInfo = params => {   //删除反馈
    let options = {
		method: 'POST',
		url: '/api/workrelate/goal/delGoalFbInfo',
		params
	};
    return Tools.callApi(options);
}

export const goalListAll = params => {   //列表数据
    let options = {
		method: 'GET',
		url: '/api/workrelate/goal/goalListAll',
		params
	};
    return Tools.callApi(options);
}

export const editStatus = params => {   //修改状态
    let options = {
		method: 'POST',
		url: '/api/workrelate/goal/editStatus',
		params
	};
    return Tools.callApi(options);
}

export const setSpecial = params => {   //添加关注
    let options = {
		method: 'POST',
		url: '/api/workrelate/goal/setSpecial',
		params
	};
    return Tools.callApi(options);
}

export const getMore = params => {   //获取更多
    let options = {
		method: 'GET',
		url: '/api/workrelate/goal/getMore',
		params
	};
    return Tools.callApi(options);
}

export const getGoalLog = params => {   //获取操作日志
    let options = {
		method: 'GET',
		url: '/api/workrelate/goal/getGoalLog',
		params
	};
    return Tools.callApi(options);
}

export const goalCard = params => { //获取组织目标卡片
	let options = {
		method: 'GET',
		url: '/api/workrelate/goal/goalCard',
		params
	};
    return Tools.callApi(options);
}

export const editGoalField = params => {   //编辑详情
    let options = {
		method: 'POST',
		url: '/api/workrelate/goal/editGoalField',
		params
	};
    return Tools.callApi(options);
}

export const setShare = params => {//设置分享
	let options = {
		method: 'POST',
		url: '/api/workrelate/common/workrelateShare',
		params
	};
	return Tools.callApi(options);
}